import axios from '~/axios'
import { getCache } from '~/composables/localStorage'
import { constant } from '~/utils/globalv'
const TABLE_NAME = 'sys_role'
export function getTableStyleAPI(){
  const userInfo = getCache(constant.userInfo) || {}
  const userSid = userInfo.userid || ''
  return axios.post('/bmsSysTableStyle/select8TableName', { userSid: userSid, tableName: TABLE_NAME })
}

export function list(){
  return axios.get('/sysRole/selectAll')
}

export function save(sysRoleRecord){
  return axios.post('/sysRole/save',  sysRoleRecord)
}

export function delete8PrimaryKey(iid){
  return axios.delete(`/sysRole/deleteByPrimaryKey/${iid}`)
}
